package com.clsz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.clsz.bean.po.FilmInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FilmMapper extends BaseMapper<FilmInfo> {

    //工具分类查询影片列表
    List<FilmInfo> selectListByTypeId(@Param("typeId") Integer id);

    //查询某分类的总数
    Integer selectCountByTypeId(@Param("typeId") Integer id);

    List<FilmInfo> selectListOrderBy(@Param("orderColumn") String column);
}
